import request from '@/utils/request'

// 获取路由
export const getRouters = () => {
  return request({
    url: './mock/menu.json',
    method: 'get'
  })
}
//获取登录菜单
export function getMenus(data) {
  return request({
    url: '/menu/nav-type',
    method: 'get',
    headers: {
      'Content-Type': 'application/json; charset=UTF-8'
    },
    params:data
  })
}